<template>
	<!-- 架子 -->
	<view class="itemBox">
		<view class="itemBox_item">
			<view class="item_one">
				
				<view class="shelfName">{{itemObj.frameName}}</view>
				<view class="shelfName">{{itemObj.p}}P</view>
				<view class="shelfName">{{itemObj.heatNum}}炉室</view>
				<view class="status" v-if="itemObj.isRun==='true'">
					<image src="../../static/index/yx.png" mode=""></image>
				</view>
			</view>
			<view class="item_two">
				<view class="item" v-if="itemObj.targetTemp"><span class="label">设定温度:</span><span class="labelValue">{{itemObj.targetTemp}}℃</span></view>
				<view class="item" v-if="itemObj.tempQuaRate"><span class="label">温度合格率:</span><span class="labelValue">{{itemObj.tempQuaRate}}%</span></view>
			</view>
			<view class="item_three">
				<view class="item" v-if="itemObj.mainPipeTemp"><span class="label">总管温度:</span><span class="labelValue">{{itemObj.mainPipeTemp}}KPa</span></view>
				<view class="item" v-if="itemObj.mainPipePre"><span class="label">总管负压:</span><span class="labelValue">{{itemObj.mainPipePre}}KPa</span></view>
				<view class="item" v-if="itemObj.naturalPressure"><span class="label">天然气压力:</span><span class="labelValue">{{itemObj.naturalPressure}}KPa</span></view>
				<view class="item" v-if="itemObj.lxTemp1"><span class="label">1#料箱温度:</span><span class="labelValue">{{itemObj.lxTemp1}}℃</span></view>
				<view class="item" v-if="itemObj.lxTemp2"><span class="label">2#料箱温度:</span><span class="labelValue">{{itemObj.lxTemp2}}℃</span></view>
			</view>


		</view>
		
	

	</view>
</template>

<script setup>
	import { defineProps } from 'vue';
	
	const props = defineProps({
	  itemObj: Object
	});

</script>

<style lang="scss" scoped>
	.itemBox {
		&_item {
			
			width: 100%;
			height: 188rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.16);
			border-radius: 4rpx 4rpx 4rpx 4rpx;
			padding: 20rpx 14rpx;
			box-sizing: border-box;
			margin-bottom: 24rpx;
			position: relative;

			.item {
				width: 250rpx;
				margin-right: 26rpx;
			}

			.label {
			
				
				font-size: 20rpx;
				color: #333;
			}

			.labelValue {
				margin-left: 10rpx;
				font-size: 24rpx;
				color: #000;
			}

			.item_one {
				display: flex;
				margin-bottom: 16rpx;
				.shelfName{
					color: #0F55B7;
					font-size: 28rpx;
					font-weight: 550;
					margin-right: 4rpx;
				}
				.status{
					width: 58rpx;
					height: 58rpx;
					position: absolute;
					right: 0;
					top: 0;
					image{
						width: 100%;
						height: 100%;
					}
				}
			}

			.item_two {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 16rpx;
			}
			
			.item_two:after {
			  content: "";
			  flex: auto;
			  
			}

			.item_three {
				display: flex;
				justify-content: space-between;
				align-items: center;
			}
			.item_three:after {
			  content: "";
			  flex: auto;
			  
			}
		}
	}
</style>